package com.hnichr.ump.common.util;

import com.mxpioframework.security.util.SecurityUtils;
import org.apache.commons.collections4.CollectionUtils;

import java.util.Set;

public class DeptUtils {
    public static String getDeptCode() {
        Set<String> deptCodes = SecurityUtils.getDeptCode();
        return CollectionUtils.isEmpty(deptCodes) ?"":deptCodes.toArray(new String[0])[0];
    }
}
